package com.castle.fortress.admin.cms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * cms友链管理表 实体类
 *
 * @author castle
 * @since 2022-02-24
 */
@Data
@ApiModel(value = "cmsLink对象", description = "cms友链管理表")
public class CmsLinkDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "标题")
	@JsonProperty("title")
	private String title;
	@ApiModelProperty(value = "地址")
	@JsonProperty("url")
	private String url;
	@ApiModelProperty(value = "图片")
	@JsonProperty("linkImage")
	private String linkImage;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "分类")
	@JsonProperty("categoryId")
	private Long categoryId;
	@ApiModelProperty(value = "排序")
	@JsonProperty("sort")
	private Integer sort;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "修改人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "修改时间")
	@JsonProperty("updateTime")
	private Date updateTime;

}
